package com.li.observerpattern;

/**
 * @author lirenchun
 */
public class ConcreteSubject extends Subject {


    @Override
    public void notifyObserver() {
        System.out.println("目标发生变化，通知观察者们。。。。");
        for (Object observer : observerList
        ) {
            ((Observer)observer).update();
        }
    }

}
